/*
 * For com.royal.art
 * Copyright [2015/11/10] By FCHEN
 */
package com.beans.log;

import java.io.Serializable;
import java.util.Date;

/**
 * ApiVisitLog
 * 接口访问日志
 * @author FCHEN
 * @date 2015/11/10
 */
public class ApiVisitLog implements Serializable {

    private static final long serialVersionUID = -7141796692675131784L;

    /**
     * 主键
     */
    private long id;
    /**
     * 请求 url
     */
    private String reqUrl;
    /**
     * 请求头信息
     */
    private String reqHeader;
    /**
     * 请求参数
     */
    private String reqParams;
    /**
     * 返回参数
     */
    private String reqBack;
    /**
     * 返回状态  success 0 or fail 1
     */
    private int reqStatus;
    /**
     * 异常
     */
    private String exception;
    /**
     * 请求时间
     */
    private Date reqTime;
    /**
     * 返回时间
     */
    private Date reqBackTime;
    /**
     * 消耗时间  毫秒
     */
    private long consumeTimes;
    /**
     * 请求地址IP
     */
    private String reqIp;
    /**
     * source
     */
    private String source;
    /**
     * 请求 token
     */
    private String token;
    /**
     * Imei
     */
    private String imei;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getReqUrl() {
        return reqUrl;
    }

    public void setReqUrl(String reqUrl) {
        this.reqUrl = reqUrl;
    }

    public String getReqHeader() {
        return reqHeader;
    }

    public void setReqHeader(String reqHeader) {
        this.reqHeader = reqHeader;
    }

    public String getReqParams() {
        return reqParams;
    }

    public void setReqParams(String reqParams) {
        this.reqParams = reqParams;
    }

    public String getReqBack() {
        return reqBack;
    }

    public void setReqBack(String reqBack) {
        this.reqBack = reqBack;
    }

    public int getReqStatus() {
        return reqStatus;
    }

    public void setReqStatus(int reqStatus) {
        this.reqStatus = reqStatus;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public Date getReqTime() {
        return reqTime;
    }

    public void setReqTime(Date reqTime) {
        this.reqTime = reqTime;
    }

    public Date getReqBackTime() {
        return reqBackTime;
    }

    public void setReqBackTime(Date reqBackTime) {
        this.reqBackTime = reqBackTime;
    }

    public long getConsumeTimes() {
        return consumeTimes;
    }

    public void setConsumeTimes(long consumeTimes) {
        this.consumeTimes = consumeTimes;
    }

    public String getReqIp() {
        return reqIp;
    }

    public void setReqIp(String reqIp) {
        this.reqIp = reqIp;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }
}
